package com.guopiao.vat.common.general.constants;

/**
 *    * @Author: Xander Xiao  * @Description:系统常量  @Date:Create in 2017/12/26  
 */

public class Constants {

  /**
   * 开具方式：1税控2开放平台
   */
  public final static String ISSUETYPE = "issueType";
  /**
   * 开具方式：1税控
   */
  public final static String ISSUETYPE_SK = "1";
  /**
   * 开具方式：2开放平台
   */
  public final static String ISSUETYPE_BOP = "2";
  /**
   * 税控请求地址
   */
  public final static String SKURL = "skUrl";
  /**
   * 开放平台地址
   */
  public final static String BWBOP_API_URL = "bwbop_api_url";
  /**
   * 税控返回为空
   */
  public final static String SKRESPONSE_EMPTY = "税控返回为空";
  /**
   * 发票已经开具过,税控幂等流程查询失败!
   */
  public final static String SKRESPONSE_QUERY_ERROR = "发票已经开具过,税控幂等流程查询失败!";
  /**
   * 系统配置错误异常
   */
  public final static String SYSTEM_CONFIG_ERROR = "系统配置异常：%s配置有误";
  /**
   * 税控返回为空
   */
  public final static int SKREQUEST_TIMEOUT = 3000;
  /**
   * 版式文件是否推送邮箱手机号0不推送1推送
   */
  public final static String PUSH_TYPE = "1";
  /**
   * 发票上传类型3已开上传
   */
  public final static String UPLOAD_TYPE = "3";

  /**
   * 推送标志 0：不推送 1：推送（邮箱电话必填一个）
   */
  public static final String FORMATFILE_PUSH_TYPE = "1";

  public static final String FORMAT_PUSH_TYPE = "pushType";


  /**
   * 退单状态 1/未开票退单成功
   */
  public static final String CHARGEBACK_NOTOPEN_SUCCESS_CODE = "1";
  public static final String CHARGEBACK_NOTOPEN_SUCCESS_MSG = "未开票退单成功";
  /**
   * 退单状态 2/已红冲
   */
  public static final String CHARGEBACK_RED_SUCCESS_CODE = "2";
  public static final String CHARGEBACK_RED_SUCCESS_MSG = "已红冲";
  /**
   * 退单状态 3/无此订单号
   */
  public static final String CHARGEBACK_NOTICKETNO_CODE = "3";
  public static final String CHARGEBACK_NOTICKETNO_MSG = "无此订单号";
  /**
   * 退单状态 4/红冲或作废失败
   */
  public static final String CHARGEBACK_RED_FAILED_CODE = "4";
  public static final String CHARGEBACK_RED_FAILED_MSG = "红冲或作废失败";
  /**
   * 退单状态 5/合并开具不支持退单
   */
  public static final String CHARGEBACK_MERGE_OPEN_CODE = "5";
  public static final String CHARGEBACK_MERGE_OPEN_MSG = "合并开具不支持退单";

  /**
   * 流水单TICKET票据状态：0未开，1已开，2 已冲红，3退货，4合并开具
   */
  public static final int TICKETSTATUS_NOTOPEN = 0;
  public static final int TICKETSTATUS_OPEN = 1;
  public static final int TICKETSTATUS_RED = 2;
  public static final int TICKETSTATUS_CHARGEBACK = 3;
  public static final int TICKETSTATUS_MERGE = 4;

  //设备类型 0税控服务器，1税控盘
  public static final String deviceType = "0";

  //特殊票种标记，00：普通发票 02：农业发票 06：抵扣通行费 07：其他通行费  默认：00
  public static final String invoiceSpecialMark = "00";

  /**
   * 最大分页条目
   */
  public final static int MAX_PAGESIZE = 500;

  /**当前蓝字发票统计*/
  public static final String CURRENT_MONTH_BLUE = "blueInvoice";

  /**当前红字发票统计*/
  public static final String CURRENT_MONTH_RED = "redInvoice";

  /**总开票量统计*/
  public static final String CURRENT_MONTH_TOTAL = "totalInvoice";

}
